/*****************************************************************************
 * Copyright (C) Stacy Curl. All rights reserved.                            *
 * ------------------------------------------------------------------------- *
 * The software in this package is published under the terms of the BSD      *
 * style license a copy of which has been included with this distribution in *
 * the LICENSE.txt file.                                                     *
 *****************************************************************************/
package picounit.features.base;

import picounit.TestFilter;

class SingleTestTestFilter implements TestFilter {
	private final String testClassName;

	public SingleTestTestFilter(String testClassName) {
		this.testClassName = testClassName;
	}

	public boolean matches(Class testClass) {
		return testClassName.equals(testClass.getName());
	}

	@Override
	public String toString() {
		return "SingleTestTestFilter(" + testClassName + ")";
	}
}
